//
//  WKFangBiPopView.h
//  XTXOneToOne
//
//  Created by Canny on 2018/11/11.
//  Copyright © 2018年 WK. All rights reserved.
//





#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**
 弹窗上的按钮
 
 - AlertButtonLeft: 左边的按钮
 - AlertButtonRight: 右边的按钮
 */
typedef NS_ENUM(NSUInteger, WKFangBiPopViewButton) {
    WKFangBiAlertButtonLeft = 0,
    WKFangBiAlertButtonRight
};


#pragma mark - 协议

@class WKFangBiPopView;

@protocol WKFangBiPopViewDelegate <NSObject>

- (void)declareWKFangBiPopView:(WKFangBiPopView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex andPassword:(NSString *)password;

@end


#pragma mark - interface

/** 申报异常弹窗 */
@interface WKFangBiPopView : UIView

/** 这个弹窗对应的orderID */
@property (nonatomic,copy) NSString *orderID;
/** 用户填写异常情况的textView */
@property (nonatomic,strong) UITextField *textField;

@property (nonatomic,weak) id<WKFangBiPopViewDelegate> delegate;

/**
 申报异常弹窗的构造方法
 
 @param title 弹窗标题
 @param message 弹窗message
 @param delegate 确定代理方
 @param leftButtonTitle 左边按钮的title
 @param rightButtonTitle 右边按钮的title
 @return 一个申报异常的弹窗
 */
- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate leftButtonTitle:(NSString *)leftButtonTitle rightButtonTitle:(NSString *)rightButtonTitle;

/** show出这个弹窗 */
- (void)show;

@end

NS_ASSUME_NONNULL_END

